package com.community.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.community.dao.PetDao;
import com.community.entity.Pet;
import com.community.service.PetService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("petService")
public class PetServiceImpl extends ServiceImpl<PetDao, Pet> implements PetService {
    @Resource
    PetDao petDao;

    @Override
    public IPage<Pet> selectAll(IPage<Pet> page, Wrapper<Pet> wrapper) {
        return petDao.selectAll(page,wrapper);
    }

    @Override
    public Pet getPetByIdBiz(Integer id) {
        return petDao.getPetById(id);
    }


}
